package com.aqumon.www.entity.request.data;

import com.aqumon.www.entity.request.ParamValidate;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

@Data
@AllArgsConstructor
public class RaaSAccountImportReq implements ParamValidate {

    private MultipartFile file;

    private String creator;


    @Override
    public void validate() {
        if (file == null || file.isEmpty()) {
            throw new IllegalArgumentException("请先上传文件");
        }
    }
}
